package main

import (
	"fmt"
	"unsafe"
)

func main()  {
	a := 0x12345678
	fmt.Println(a)
	p := unsafe.Pointer(&a)
	n := (*[4]byte)(p)
	fmt.Println(*n)
	for _, v := range *n{
		fmt.Printf("%x \n", v)
	}

	a1 := 0x22666889
	fmt.Println(a1)		// 577136777
	p1 := unsafe.Pointer(&a1)
	n1 := (*[4]byte)(p1)
	fmt.Println(*(*int64)(p1))   // 577136777
	fmt.Println(*n1)
	for _, v1 := range *n1{
		fmt.Printf("%x \n", v1)
	}
}
